package com.example.service.impl.siyunCouponsServiceImpl;

import com.example.dao.siyunCouponsDao.CouponsDao;
import com.example.pojo.siyunCouponsPojo.Coupons;
import com.example.service.siyunCouponsService.CouponsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 杨佳欣
 * @Description: TODO
 * @DateTime: 2022/11/6 21:42
 **/

@Service
public class CouponsServiceImpl implements CouponsService {
    @Autowired
    private CouponsDao couponsDao;

    @Override
    public List<Coupons> getCouponslistAll() {
        return couponsDao.getCouponslistAll();
    }

    @Override
    public List<Coupons> getCouponslistFuzzyCheck(Coupons coupons) {
        return couponsDao.getCouponslistFuzzyCheck(coupons);
    }

    @Override
    public Boolean addCouponslist(Coupons coupons) {
        return couponsDao.addCouponslist(coupons);
    }

    @Override
    public Boolean deleteCouponslist(Integer couponId) {
        return couponsDao.deleteCouponslist(couponId);
    }
}
